package com.yanqu.road.entity.activity.witchdraw.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_witch_draw_user_data")
public class WitchDrawUserData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id",select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家id",select = true)
    private long userId;
    @FieldTypeAnnotation(desc = "本次活动积分")
    private long score;
    @FieldTypeAnnotation(desc = "当前无双保底剩余次数,每次抽奖-1,0时获取大奖,每次清0后重新随机")
    private int simpleEnsureTimes;
    @FieldTypeAnnotation(desc = "当前神话保底剩余次数,每次抽奖-1,0时获取大奖,清0后不重置")
    private int mythEnsureTimes;
    @FieldTypeAnnotation(desc = "本次活动总抽奖次数")
    private int totalDrawTimes;
    @FieldTypeAnnotation(desc = "剩余免费抽数")
    private int freeDrawTimes;
    @FieldTypeAnnotation(desc = "本次活动抽到神话奖励的次数")
    private int mythTotalDrawTimes;



    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getScore() {
        return score;
    }
    public void setScore(long score) {
        if (this.score != score) {
            this.score = score;
            setOp(DataStatus.Update);
        }
    }

    public int getSimpleEnsureTimes() {
        return simpleEnsureTimes;
    }
    public void setSimpleEnsureTimes(int simpleEnsureTimes) {
        if (this.simpleEnsureTimes != simpleEnsureTimes) {
            this.simpleEnsureTimes = simpleEnsureTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getMythEnsureTimes() {
        return mythEnsureTimes;
    }
    public void setMythEnsureTimes(int mythEnsureTimes) {
        if (this.mythEnsureTimes != mythEnsureTimes) {
            this.mythEnsureTimes = mythEnsureTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getTotalDrawTimes() {
        return totalDrawTimes;
    }
    public void setTotalDrawTimes(int totalDrawTimes) {
        if (this.totalDrawTimes != totalDrawTimes) {
            this.totalDrawTimes = totalDrawTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getFreeDrawTimes() {
        return freeDrawTimes;
    }
    public void setFreeDrawTimes(int freeDrawTimes) {
        if (this.freeDrawTimes != freeDrawTimes) {
            this.freeDrawTimes = freeDrawTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getMythTotalDrawTimes() {
        return mythTotalDrawTimes;
    }

    public void setMythTotalDrawTimes(int mythTotalDrawTimes) {
        if (this.mythTotalDrawTimes != mythTotalDrawTimes) {
            this.mythTotalDrawTimes = mythTotalDrawTimes;
            setOp(DataStatus.Update);
        }
    }

}
